// ========== Token 相关 ==========
const AccessTokenKey = "ACCESS_TOKEN";
export function getToken() {
    return localStorage.getItem(AccessTokenKey);
}

export function setToken(token) {
    localStorage.setItem(AccessTokenKey, token);
}

export function removeToken() {
    localStorage.removeItem(AccessTokenKey);
}
// ========== 账号 相关 ==========
const UserKey = "USER"
export function getUser() {
    return JSON.parse(localStorage.getItem(UserKey))
}
export function setUser(user) {
    localStorage.setItem(UserKey, JSON.stringify(user));
}
export function removeUser() {
    localStorage.removeItem(UserKey)
}